package cn.iocoder.yudao.module.pay.controller.admin.packageorder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 套餐订单新增/修改 Request VO")
@Data
public class PackageOrderSaveReqVO {

    @Schema(description = "套餐订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "26244")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31217")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20577")
    @NotNull(message = "套餐编号不能为空")
    private Long packageId;

    @Schema(description = "套餐名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "套餐名称不能为空")
    private String packageName;

    @Schema(description = "价格，单位：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "4281")
    @NotNull(message = "价格，单位：分不能为空")
    private Integer price;

    @Schema(description = "是否已支付：[0:未支付 1:已经支付过]", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "是否已支付：[0:未支付 1:已经支付过]不能为空")
    private Boolean payStatus;

    @Schema(description = "支付订单编号", example = "16062")
    private Long payOrderId;

    @Schema(description = "支付成功的支付渠道")
    private String payChannelCode;

    @Schema(description = "订单支付时间")
    private LocalDateTime payTime;

    @Schema(description = "退款订单编号", example = "24770")
    private Long payRefundId;

    @Schema(description = "退款金额，单位：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "24683")
    @NotNull(message = "退款金额，单位：分不能为空")
    private Integer refundPrice;

    @Schema(description = "退款时间")
    private LocalDateTime refundTime;

}